#include "main.h"

int main(void)
{
    device_init();        //硬件初始化
    while(1)
    {
        iwdg_feed();    //喂狗 
        if(usart3_rx_ok)
        {     
            usart3_rx_ok=0;    
            deal_usart3();      //处理接收数据
        }
        send_to_bluetooth();    //发送数据
        relay_control();        //继电器控制
    }
}
